package Three_ZhuChangShuang.entity;

/**
 * @Author zhu
 * @Date 2021/3/24 14:51
 * @ClassNmae Person
 * @Description
 */
public class Person {
    private String name;
    private String pwd;
    private String number;
    private int status;  //0为未接种  1为接种了
    private String aTime;  //预约日期
    private String iTime; //接种日期
    private int species; //疫苗种类   0为未预约  1为灭活疫苗 2为腺病毒疫苗

    public Person(String name, String pwd, String number) {
        this.name = name;
        this.pwd = pwd;
        this.number = number;
    }

    public Person() {
    }


    public String getaTime() {
        return aTime;
    }

    public void setaTime(String aTime) {
        this.aTime = aTime;
    }

    public String getiTime() {
        return iTime;
    }

    public void setiTime(String iTime) {
        this.iTime = iTime;
    }

    public int getSpecies() {
        return species;
    }

    public void setSpecies(int species) {
        this.species = species;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public void show() {
        System.out.println(getName() + "\t\t\t " + getNumber() + " \t\t\t" + getaTime() + " \t" + getiTime() + " \t\t\t" + ((getSpecies() == 1) ? "灭活疫苗" : "腺病毒疫苗"));
    }
}

